import request from '@/utils/request'

// 查询塌方源观察巡检列表
export function listCollapse(query) {
  return request({
    url: '/slope/collapse/list',
    method: 'get',
    params: query
  })
}

// 查询塌方源观察巡检详细
export function getCollapse(id) {
  return request({
    url: '/slope/collapse/' + id,
    method: 'get'
  })
}

// 新增塌方源观察巡检
export function addCollapse(data) {
  return request({
    url: '/slope/collapse',
    method: 'post',
    data: data
  })
}

// 修改塌方源观察巡检
export function updateCollapse(data) {
  return request({
    url: '/slope/collapse',
    method: 'put',
    data: data
  })
}

// 删除塌方源观察巡检
export function delCollapse(id) {
  return request({
    url: '/slope/collapse/' + id,
    method: 'delete'
  })
}
